import request from '@/utils/request'

// 登录
export const loginApi = (data) => {
  return request({
    method: 'post',
    url: '/login',
    data
  })
}

// 验证码
export const verificationCode = () => {
  return request({
    method: 'get',
    url: '/captcha?key=047888C11983697815D1F91C1676702187841&0=047888C11983697815D1F91C1676702187841',
    responseType: 'blob'
    // responseType: 'arraybuffer' // 加上这句就可以展示了

  })
}
